<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="选择业务单" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<%
request.setAttribute("vReturn", "\r");//奇怪,这里用c:set var="vReturn" value="\n"不起作用,直接在fn:replace里用\n也不行
request.setAttribute("vEnter", "\n");
%>
<script language="javascript">
	function doReturn(){
		var arr=new Array();
		var a;
		<c:forEach var="item" items="${list}" varStatus="i">
			a=new Array();
			a[0]="${item[0].billCode}";
			a[1]="${item[0].id}";
			a[2]="<fmt:formatDate value="${item[0].orderDate}" pattern="yyyy-MM-dd"/>";
			a[3]="<commonTag:parseBigDecimal source="${item[0].cost}" />";
			a[4]="<commonTag:parseBigDecimal source="${item[0].cost-item[1].collectedCost+item[1].adjustCost}" />";
			a[5]="${fn:replace(fn:replace(fn:replace(fn:replace(item[0].content,'\\','\\\\'),'\"','\\\"'),vEnter,''),vReturn,'')}";
			a[6]="${item[0].linkman}";
			arr[${i.index}]=a;
		</c:forEach>
		if(arr.length>0){
			parent.popRetVal=arr;
		}
		parent.ClosePop();
	}
</script>
</head>
<body oncontextmenu="return false" onload="doReturn();">
<table width="100%" height="100%" border="0" cellpadding="1" cellspacing="1">
	<tr>
		<td align="center">请稍候...</td>
	</tr>
</table>
</body>
</html>